package com.chen.wow.day03.scope;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes=ScopeConfig.class)
public class TestScope {
	@Autowired
	private Notepad notepad;
	@Autowired
	private Notepad notepad2;
	
	@Test
	public void play(){
		notepad.play();
		System.out.println(notepad == notepad2);//false
	}
}
